@echo off
SET WSP=Ratman.SharePoint.SharePointSandBoxMediaPlayer.wsp
@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH%
@echo on

@echo.
@echo  Begin upgrading %WSP%

@echo.
@echo  display solution
stsadm -o displaysolution -name %WSP%

@echo.
@echo  upgrade the solution
stsadm -o upgradesolution -name %WSP% -filename Deployment\%WSP% -immediate -allowgacdeployment

@echo  execute the upgrade timer job immediately
stsadm -o execadmsvcjobs

@echo.
@echo  display solution
stsadm -o displaysolution -name %WSP%

@echo.
@echo  End upgrading %WSP%